import dubboclient
dubboclt = dubboclient.DubboClient("211.103.136.244", 6502)
def add(x,y,z):
    info = {"id": x, "name": y, "phoneNumber": z}
    info["class"] = "com.itheima.pojo.Member"
    resp = dubboclt.invoke("MemberService", "add", info)
    print("响应结果 =", resp)
    return resp
def check(z):
    resp1 = dubboclt.invoke("MemberService", "findByTelephone", z)
    print("响应结果 =", resp1)
    if "id"and"name"and"phoneNumber" in resp1 :
        print("yes")
        return "yes"
def months(m):
    resp = dubboclt.invoke("MemberService", "findMemberCountByMonths", m)
    if resp is not None :
        print("yes")
        return "yes"
    if resp is [] :
        print("no")
        return "no"
if __name__ == '__main__':
    add()
    check()
    months()
